#include<iostream>
#include<cstring>

int main()
{
    using namespace std;
    char name_first[20],name_last[20];
    cout << "Enter your first name:";
    cin.getline(name_first,20);
    cout << "Enter your last name:";
    cin.getline(name_last,20);
    cout << "Here's the information in a single" << endl;
    strcat(name_last,",");
    strcat(name_last,name_first);
    cout << "string:" << name_last << endl;

    return 0;
}